package pojo;

import mapper.ConnectionPoll;

import java.sql.Connection;

public class ManageConnection {
    private static ConnData connData = new ConnData();
    private static ConnectionPoll connectionPoll = new ConnectionPoll(connData);

    public static Connection    getConnection(){
        return connectionPoll.getConnection();
    }

    public static void releaseConnection(Connection connection){
        connectionPoll.releaseConnection(connection);
    }

}
